#include<bits/stdc++.h>
using namespace std;
int a[100010],f[100010];
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n,cnt=0;
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>a[i];
		f[i]=1;
	}
	sort(a+1,a+n+1);
	for(int i=1;i<=n;i++){
		for(int j=i+1;;j++){
			if(a[i]<a[j]&&f[j]==1){
				f[i]=0,f[j]=2;
				break;
			}
			if(j>n) break;
		}
	}
	for(int i=1;i<=n;i++){
		if(f[i]!=0) cnt++;
	}
	cout<<cnt<<endl;
	return 0;
}
